export enum MessageType {
  Assistant = 'assistant',
  User = 'user',
}

export enum ChatVariableEnabledField {
  TemperatureEnabled = 'temperatureEnabled',
  TopPEnabled = 'topPEnabled',
  PresencePenaltyEnabled = 'presencePenaltyEnabled',
  FrequencyPenaltyEnabled = 'frequencyPenaltyEnabled',
  MaxTokensEnabled = 'maxTokensEnabled',
}

export const variableEnabledFieldMap = {
  [ChatVariableEnabledField.TemperatureEnabled]: 'temperature',
  [ChatVariableEnabledField.TopPEnabled]: 'top_p',
  [ChatVariableEnabledField.PresencePenaltyEnabled]: 'presence_penalty',
  [ChatVariableEnabledField.FrequencyPenaltyEnabled]: 'frequency_penalty',
  [ChatVariableEnabledField.MaxTokensEnabled]: 'max_tokens',
};

export enum SharedFrom {
  Agent = 'agent',
  Chat = 'chat',
}

export enum ChatSearchParams {
  DialogId = 'dialogId',
  ConversationId = 'conversationId',
  isNew = 'isNew',
}

export const EmptyConversationId = 'empty';

export const chatID = '579c061056f311f0b8dd4e3013f6e696'
export const authorization = 'ragflow-Q4ODc2MDAwNTZlNjExZjBhZDgxNGUzMD'
export const ttsUrl = 'https://ai.hzailab.cn/v1/conversation/tts'
export const ttsAuthorization = 'IjQyMzg3ZjM4NDFjMjExZjA4ZTAxMDI0MmFjMTIwMDA2Ig.aEEXbw.1Rm3T1R9hcGVlxb_u30I_VAC3BE'
